package tu.java.db;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import tu.java.movie.Genre;

public class DBUtil {
	
	
	
	public static void commit(Connection conn, boolean status) {		
		try {
			if (status) {
				conn.commit();
			}
			else {
				conn.rollback();
			}
		}
		catch (SQLException e) {
			e.printStackTrace();
		}		
	}
	
}
